Skip to content

refactor(css): drop extra.css, layer Bifrost framework, strip important#39

Merged
Erlend Ellefsen (erlendellefsen) merged 1 commit into
mainfrom
refactor/css-cleanup-layer-and-tokens
May 8, 2026
Merged

refactor(css): drop extra.css, layer Bifrost framework, strip important#39
Erlend Ellefsen (erlendellefsen) merged 1 commit into
mainfrom
refactor/css-cleanup-layer-and-tokens

Conversation

@erlendellefsen
Copy link
Copy Markdown
Collaborator

Summary

  • Delete extra.css (1,230 lines): hardcoded hex colors, dead asset reference, broken jQuery :contains() selector, duplicate font loading. Anything load-bearing already lives in bifrost.css.
  • Scope the Bifrost CDN import into @layer bifrost per Bifrost's docs. Plugin overrides stay unlayered so they keep winning against Material on natural specificity.
  • Strip all !important declarations. The cascade now resolves cleanly: our rules ship after Material's at equal-or-higher specificity, so they win on source order alone.
  • Use Bifrost tokens directly: --bfc-success (replaces local --bifrost-success-*), --bf-radius-{xs,s} (replaces raw border-radius px values), --bfs{12,16} (replaces raw spacing px). One deliberate 44px admonition icon offset stays raw with a comment.
  • Drop the Monaco font override on inline code so JetBrains Mono actually renders, matching the README.
  • Drop self-hosted Satoshi woff2 files; Bifrost CSS already loads Satoshi via fontshare.
  • README documents that both default/slate (Material standard) and light/dark (plugin historical) scheme names work.

Closes #35.

@erlendellefsen Erlend Ellefsen (erlendellefsen) merged commit 6b868f7 into main May 8, 2026
4 checks passed
@erlendellefsen Erlend Ellefsen (erlendellefsen) deleted the refactor/css-cleanup-layer-and-tokens branch May 8, 2026 14:56
Erlend Ellefsen (erlendellefsen) pushed a commit that referenced this pull request May 8, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.7.1](v0.7.0...v0.7.1)
(2026-05-08)


### Fixes

* **theme:** detect Material's slate scheme as dark mode
([#37](#37))
([82624b3](82624b3))


### Code refactoring

* **css:** drop extra.css, layer Bifrost framework, strip important
([#39](#39))
([6b868f7](6b868f7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: bifrost-mkdocs-release-bot[bot] <263594613+bifrost-mkdocs-release-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vendor bifrost-all.css locally and scope rules in @layer bifrost

1 participant